package com.usian.article.controller;

import com.usian.apis.article.CollectionBehaviorControllerApi;
import com.usian.article.service.CollectionBehaviorService;
import com.usian.model.article.dtos.CollectionBehaviorDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/v1/collection_behavior")
public class ApControllerBehaviorController implements CollectionBehaviorControllerApi {
    @Autowired
    private CollectionBehaviorService service;
    @PostMapping
    @Override
    public ResponseResult like(@RequestBody CollectionBehaviorDto dto) {
        return service.like(dto);
    }
}
